// Benke PdF. Learn 3 uses in while.

#include <stdio.h>

// Counting machine.
/* int main()
{
    int i, N;
    i = 0;
    N = 100;
    while (i < N)
        i++;
    printf("Counting times = %d\n", i);
    return 0;
} */

// Plus.
/* int main()
{
    int i, N, p;
    i = 1;
    N = 100;
    p = 0;

    while (i <= N)
    {
        p += i;
        i++;
    }

    printf("Plus result = %d\n", p);
    return 0;
} */

// Multiply
int main()
{
    int i, N;
    long long int m;
    i = 1;
    N = 20;
    m = 1;

    while (i <= N)
    {
        m *= i;
        printf("Multiply result = %lld\n", m);
        i++;
    }

    printf("END. Multiply result = %lld\n", m);
    return 0;
}